import { Module } from '@nestjs/common';
import { ArticleService } from './article.service';
import { ArticleController } from './article.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Article } from './entities/article.entity';
import { User } from '../user/entities/user.entity';
import { Comment } from '../comment/entities/comment.entity';
import { LoginService } from '../login/login.service';
import { RedisService } from '../../common/redis.service';
import { RedisProvider } from '../../common/redis.config';
import { CollectModule } from '../collect/collect.module';
@Module({
  imports: [TypeOrmModule.forFeature([Article, User, Comment]),CollectModule],
  controllers: [ArticleController],
  providers: [ArticleService,LoginService, RedisService, RedisProvider],
  exports: [ArticleService],
})
export class ArticleModule {}
